<div class="row">
	<div class="col-lg-4"><h2><?php echo __d('admin', 'Products');?></h2></div>
    <div align="right" style="padding-top:15px" class="actions col-lg-8">
        <div class="actions col-lg-9">
        <form name="frm" id="frm-filter" action="/admin/products" method="post">
           <?php echo $this->Form->input('brand_id', array_merge(array('style'=> 'width:200px', 'id'=> 'brand', 'class'=> 'form-control','label' => false), array('options' => $productBrandsSelect, 'empty' => '- ' . __d('admin', 'Choose Brand') . ' -')));?>
        </form>
        </div>
        <div class="actions col-lg-3">
            <?php echo $this->Html->link(__d('admin', 'New Product'), array('action' => 'add'), array('class' => 'btn btn-primary')); ?>
        </div>
    </div>	
</div>
<div class="products index table">
	<?php echo $this->element('../AdminProducts/table');?>
</div>
<script>
$('#brand').change(function(){
    $('#frm-filter').submit();
}); 
</script>
